﻿@{
    Layout = "~/_SiteLayout.cshtml";
    Page.Title = "New Claim Page";

    string result = string.Empty;
    
    if (IsPost)
    {
        if (Request.Form["actionButton"] == "submit")
        {
            result = "hello wordl";

            KeppelLand.Helpers.EmailHelper.SendEmail("zhixian.ong@keppelland.com", "test email", "hello workd", false);
        }
    } // if (IsPost)
    
}

<div class="container-fluid main-content" role="main" >

    <h2>
        Send test e-mail
    </h2>

    <form method="post">

        <input type="submit" name="actionButton" value="submit" />

    </form>

    <p>
        @result
    </p>
</div>


@section Scripts
{
    <script type="text/javascript" src="~/Scripts/kendo/2014.3.1119/kendo.ui.core.min.js"></script>
    <script type="text/javascript" src="~/Scripts/moment.js"></script>
    <script type="text/javascript" src="~/Scripts/moment-with-locales.js"></script>
    <script type="text/javascript">
    (function ($) {
        "use strict";

    }(jQuery));

    </script>
}